<template>
  <el-card>
    <el-row>
      <el-col :span="6" class="name">张昕</el-col>
      <el-col :span="12" class="fund">{{ this.detail.already_raised }} 元</el-col>
      <!-- <el-col>{{ this.detail.already_raised }}</el-col> -->
      <el-col :span="6" class="link">
        <a
          :href="`https://zhongchou.modian.com/item/${this.detail.pro_id}.html`"
          target="_blank"
        >支持她</a>
      </el-col>
    </el-row>
  </el-card>
</template>

<script>
import modian from "../utils/modian";
export default {
  data() {
    // {
    //   already_raised: 36381.58;
    //   backer_count: 324;
    //   end_time: "2019-07-01 00:00:00";
    //   goal: "50000";
    //   left_time: "距离结束还剩【139小时54分钟53秒】";
    //   mobile_cover: "https://p.moimg.net/project/project_20190602_1559477908_7183_crop.jpg?imageMogr2/auto-orient/strip";
    //   pc_cover: "https://p.moimg.net/project/project_20190602_1559477789_6788.jpg?imageMogr2/auto-orient/strip";
    //   pro_id: "64816";
    //   pro_name: "【张昕】六选专项众筹vol.5";
    //   success_order_count: 1267;
    // }
    return {
      detail: "syncing"
    };
  },
  async mounted() {
    this.detail = (await modian.projectDetails(64816)).data[0];
  }
};
</script>

<style scoped>
.name {
  font-size: 2em;
  font-weight: bold;
  text-align: justify;
}

.name:after {
  content: " ";
  display: inline-block;
  width: 100%;
}

.fund {
  height: 2em;
  font-size: 1.5em;
  margin-top: 0.25em;
}

.link {
  font-size: 1.5em;
  margin-top: 0.25em;
}
</style>
